﻿using SAM.Framework.Log;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;

namespace SAM.Framework.Log4netAdapter
{
    public class StringLog4net : ILog<string>
    {
        private ILog log;
        public StringLog4net(ILog log)
        {
            this.log = log;
        }

        public void Debug(string message)
        {
            this.log.Debug(message);
        }

        public void Debug(string message, Exception ex)
        {
            this.log.Debug(message, ex);
        }

        public void Info(string message)
        {
            this.log.Info(message);
        }

        public void Info(string message, Exception ex)
        {
            this.log.Info(message, ex);
        }

        public void Warn(string message)
        {
            this.log.Warn(message);
        }

        public void Warn(string message, Exception ex)
        {
            this.log.Warn(message, ex);
        }

        public void Error(string message)
        {
            this.log.Error(message);
        }

        public void Error(string message, Exception ex)
        {
            this.log.Error(message, ex);
        }

        public void Fatal(string message)
        {
            this.log.Fatal(message);
        }

        public void Fatal(string message, Exception ex)
        {
            this.log.Fatal(message, ex);
        }
    }
}
